﻿
using Coffee_Restaurant.Database;
using System;

namespace Coffee_Restaurant.DAL
{
    class InOutMoneyDa
    {
        public static int Insert(InOutMoney inOutMoney)
        {
            int status = 0;
            try
            {
                using (var db = new DatabaseEntities())
                {
                    db.InOutMoneys.Add(inOutMoney);
                    status = db.SaveChanges();

                }
            }
            catch (Exception)
            {
            }
            return status;
        }

    }
}
